package br.com.moxeon.model.cash;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Enumerated;
import javax.persistence.Table;

import br.com.moxeon.model.MoxeonControlledBasicPersistentEntity;
import br.com.moxeon.model.enums.CashSituation;
import br.com.moxeon.model.enums.Period;


@SuppressWarnings("serial")
@Entity
@Table(name = "cash")
@Deprecated
public class Cash extends MoxeonControlledBasicPersistentEntity {

	// private Modulo _modulo;
	@Enumerated
	@Column(nullable = false)
	private Period periodicity;

	/*
	@Deprecated
	@OneToMany(targetEntity = FinancialAccount.class, mappedBy = "cash", fetch = FetchType.LAZY)
	private List<FinancialAccount> financialAccounts;
    */
	
	// private Funcionario responsavel;
	@Enumerated
	@Column(nullable = false)
	private CashSituation situation;

	public Period getPeriodicity() {
		return periodicity;
	}

	public CashSituation getSituation() {
		return situation;
	}

	public void setPeriodicity(Period periodicity) {
		this.periodicity = periodicity;
	}

	public void setSituation(CashSituation situation) {
		this.situation = situation;
	}

	/*
	@Deprecated
	public List<FinancialAccount> FinancialAccounts() {
		return financialAccounts;
	}

	public void FinancialAccount(List<FinancialAccount> financialAccounts) {
		this.financialAccounts = financialAccounts;
	}
	*/

}